/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.epam.muzalevskiy.third_project.knife;

/**
 * This class describe parameters of knife handle.
 *
 * @author Muzalevskiy Vitaliy
 */
public class Handle {
    
    /**
     * Value of <code> HandleMaterial </code> type which is one of the 
     * enumerated handle materials.
     */
    private HandleMaterial material;
    
    /**
     * This parameter tells us about presence of blood flow in current knife.
     */
    private boolean bloodFlow;

    /**
     * Constructor of <code> Handle </code> class. 
     *
     * @param material - value of handle material.
     * @param bloodFlow - presence of blood flow.
     */
    public Handle(HandleMaterial material, boolean bloodFlow) {
        this.material = material;
        this.bloodFlow = bloodFlow;
    }

    /**
     * @return the material
     */
    public HandleMaterial getMaterial() {
        return material;
    }

    /**
     * @return the bloodFlow
     */
    public boolean isBloodFlow() {
        return bloodFlow;
    }

    @Override
    public String toString() {
        return "Handle [" + "material=" + material + ", bloodFlow=" + bloodFlow + ']';
    }
    
    
}
